home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 23
/
Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso
/
Aminet
/
disk
/
misc
/
HDOff_1_40.lha
/
HDOff.doc
< prev
next >
Wrap
PGP Signed Message
|
1997-11-13
|
11KB
|
275 lines
-----BEGIN PGP SIGNED MESSAGE-----
NAME
HDOff -- a program for the A600/A1200 and A4000 to stop the HD
motor.
SYNOPSIS
HDOff T=TIME/N,T2=TIME2/N,FORCE/S,OTHER/S,OTHER2/S,NOW/S,NOW2/S,
SET1200/S,SET4000/S,UPDATE/S,QUIET/S,STOP/S,STOP2/S
DESCRIPTION
HDOff is a program like NoiseSaver for the A1200 and A4000. It stops
the HD motor x minutes after the last access.
TIME, TIME2 :
Time in minutes after the 1st/2nd HD will shut down.
FORCE :
Forces HDOff to quit. Normaly HDOff doesn`t quit if another
programm (like cachesoftware ) patched the scsi.device after
HDOff did. But if you are using SetFuncManager (or something
similar), HDOff can nevertheless quit without danger. ONLY USE
THIS OPTION IF YOU ARE USING SETFUNCMANAGER OR SOMTHING LIKE
IT!
OTHER, OTHER2 :
This option makes HDOff to use an alternative command ($94
instead of $E0) to stop the HD`s motor. If your HD doesn`t
spin down, try this option. Some drives, especially older
ones, don`t support the `STANDBY` (all newer drives should
support it, at least the "green-PC" drives supporting power
management).
NOW, NOW2 :
The selected HD spins down immediately on startup, the program
just does it`s normal job (usefull for seldom used HD`s).
SET1200, SET4000:
With some odd HD`s, HDOff isn`t able to detect wich controller
is present in your Amiga (this happens, too, if you have a
CD-Rom connected but no CD inserted). If you start HDOff and
get a "Incorrect HD controller!" message, but are actually
using an A600/A1200/A4000, use the option SET1200 for an
A600/A1200 or SET4000 for an A4000.
UPDATE:
With this option you can adjust the shutdowntime online.
QUIET:
Using this option HDOff won`t print anything out (similar to
>NIL:). Usefull e.g. if you start it in the user-startup.
STOP, STOP2:
HDOff will just stop the 1st (STOP) or 2nd (STOP2) harddrive,
but HDOff won`t be installed.
NOTE
Be shure not to set the "time" value too low (maximum are 65535 minutes
:) as permanently spinning the drive up and down does shorten the life
expectancy of the drive (60 minutes is a good choice).
You don`t need to start HDOff with run.
To quit HDOff, simply restart it.
If a requester with the message "Someone else has patched
scsi.device!..." pops up, someone else (e.g. caching software) has
latched into the scsi.device. For security reasons HDOff cannot be
terminated this time.
This program is 100% written in assembler (DevPac 3.14) and (as far as
its possible) systemconform.
EXAMPLES
1. HDOff 30
Stops the motor of the 1st HD 30 minutes after the last access.
2. HDOff 30 15 OTHER2
Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD 15
minutes after the last access. For the 2nd HD the alternative command
will be used to stop the motor
3. HDOff T2=20
Stops the motor of the 2nd HD 30 minutes after the last access.
4. HDOff 30 15 NOW2
Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD
immediately. If the 2nd HD was accessed and so spins up, the next spin
down will again happen after 15 mins.
5. HDOff 50 10 UDPATE
If you already started HDOff, the timeout`s for the HD`s will be
changed to the new values.
6. HDOff STOP QUIET
This will just and only stop the 1st drive, there will not be any
timeout! Additionally there will be no output.
TECHNICAL
How does it work? The essential things are:
1. Test if ide controller is present (if not: quit)
2. Patch scsi.device (using SetFunction, of course). The patch
signals HD accesses to the main task.
3. Count the timer down and reinitialize it if a signal from the patch
occures.
4. If timer reaches 0: Signal the patch to delay all commands (for
both drives) till the signal is retracted. Security delay 1 sec.
Forbid(), Wait_IDE_unbusy, select drive (master/slave),
Wait_IDE_unbusy, spin down HD, Permit(). Retract the signal for the
patch for the HD that was not stopped, for the other one after a 5 secs
security delay (spin up is done by the HD itself).
5. Check, if there are any messages and process them.
6. Repeat step 3-4 until abort.
For more information about the messageport have a look in
Developers.doc!
DISCLAIMER & COPYRIGHT
This software is subject to the "Standard Amiga FD-Software Copyright
Note" It is Freeware as defined in paragraph 4a. For more information
please read "AFD-COPYRIGHT" (Version 1 or higher).
AUTHOR
Gideon Zenz
Giersbergstr. 41
53229 Bonn
GERMANY
EMail: gzenz@ixc.net
-Gideon Zenz, 20-Jul-97
BUGS
None known.
FUTURE
I have now a SCSI-only system, but this didn`t prevent me not to do a
SCSI version of HDOff. The reasons are that HDOff wasn`t planned to
support more than 2 drives, and not more then one device, so it will be
quite difficult to implement. But we`ll see B-)
HISTORY
v1.0: (08-Mai-94)
- Initial release
v1.1: (30-Jan-95)
- Timerloop in minutes and much more precisely
- No need to start with run any more
- At all more secure and more systemconform
- A4000 support
v1.2: (20-Apr-95)
- docs completely rewritten
- Support of 2nd HD`s
- New args OTHER and OTHER2 and NOW and NOW2
v1.33: (7-Jan-96)
- HDOff crashed if started on heavy diskaccess.
- new options SET1200 and SET4000
- Implementation of the onlineport. Have a look in
Developers.doc for usage.
v1.34: (22-Feb-96)
- Fixed a bug in the onlineport: PortVer wasn`t set.
- Added GetStats&Source
- Completely reworked Developer.doc
- Now working 100% on A600
- New arg UPDATE (thx to Ingo Eickelkamp for suggestion)
v1.35: (16-Mar-96)
- New option QUIET
- Bugfix in UPDATE, wrong values were taken
- Now there is again a check if you enter too big values
- MAJOR bug: HD spun only the 1st time down on a1200 [thx to Oli Lohr]
- System of timecounting changed, now 100% accurate
- NOW(2) working again [thx to Oli Lohr]
- New options STOP(2) [thx to A.BOERNER@bbrandes.berlinet.de]
- New, bugfixed and improed version of Getstats [Thx Matthias Andree!]
v1.36: (26-Jun-96)
- Some bugfixes
- Message port expanded/changed (look at Developers.doc)
- Everything is now multi threaded, so msg`s etc are immediately
processed now.
- Included new, advanced GetStats
v1.37 (1-Sep-96)
- Fixed Mungwallhit
- Optimized
- Msgport updated for GUI by M.Andree (look at Developers.doc)
- adapted GetStats
v1.38 (20-Jul-97)
- some bugfixes (thx to Dave Jones, Oli Lohr)
v1.39 (2-Sep-97)
- Finally works with MCP (thx to Mathias Andree for the hint).
v1.40 (13-Nov-97)
- Now supports the CD32 ProModule extension! No changes for
the user. (thx to Henry Sopko)
- Updated GetStats and Developers.doc
THANKS
Many thanks to heureka@bigben.dssd.sub.org and M.ZIELINSKI@
amtrash.comlink.de for their helps on A4000 and 2nd HD support, and all
other`s who wrote me! A special thank must go out to Matthias Andree,
who had a look at the docs, and who is now doing a nice GUI!
SECURITY
If you want to be shure you have the original programs, check
with "md5sum -c HDOff.doc". (md5sum is part of the PGP package)
dfdf15f58f042ffa0f018ba8277124f7 AFD-COPYRIGHT
f7da7a8653f2153aea03f73d664f2a40 AFD-COPYRIGHT.de
8443bab258509343b29fcd5293bc788c Developers.doc
eee299bde80f0d47ae428534ee112b80 *GetStats
da25899c097d53aeb9f18cc88e579776 GetStats.c
5fb2e0f4969e10a2b0d1570bc8f02dca *HDOff
- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3ia
mQCNAi3izr8AAAEEAMi+7o+iKDG26t8EuoX0NJ92iwhkviRC3GdJ1Uvef4+xJA3V
ey20ZnzBg/OokPdo0a3VxhwyjD2auyFmp7DLupQTko7Wx2zLk19EzVBxI6NggUev
ep+eaVvAi8V/YosYh0Xg4/dScOq391irO6k9+BPqkQPH+bRNCUBgnhXGkfElAAUR
tBtHaWRlb24gWmVueiA8Z3plbnpAaXhjLm5ldD6JARUDBRAz36dHCen5CopyTkUB
AUrFB/9cdPzCbD0H6z3CDBRA2rhFQblNvC3R/Cjl5+EQhafJZ5egiMncEbH/rgR2
xmAqj789+ClC2cxtvRJpEeldB/BTqh0Ta/2i752xaH/AZP8Z6LFiLufW8EFRKmTz
QZEV2uQ9iIEUAZaxP6482Sqymvp4WmqFWWuDnS+G6PjPwIl1gSvFhVaZSZfmbZGs
YDePjL4yEHJymKW19hNkyG4u7TRpvWVHLuuqYUS+gjvXKfJkEr1epfVbUkgPqbyZ
vQ5eJ097oL6m7dZwhgLmdwZ2EUNWH45pHXNTyOSFhkWkt9wMCQ4dzDSgmvD0T9Tw
WhExUoTDX6r1tYdvGrg52y5PtLTEiQCVAwUQMySwfUBgnhXGkfElAQGJcgP/b6Hf
GYzF1TBvXbmubxzkvPJtnX4PNQP3PF97vjwqBpkUuYv1esxS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